import * as actionTypes from './constant';
import { getLoginRequest } from '@/services/login';

export const changeLoginAction = () => {
  return (dispatch) => {
    getLoginRequest().then((res) => {
      dispatch({
        type: actionTypes.GET_LOGIN,
        info: res.data,
      });
    });
  };
};
